
import layout from '@/layout/'

const meta = { auth: true, toolbar: false }

export default {
    path: '/home',
    name: 'home',
    meta,
    redirect: { name: 'home-detail' },
    component: layout,
    children: (pre => [
        {
            path: 'detail/:id',
            name: `${pre}detail`,
            component: () => import('@/pages/home/detail'),
            meta: { ...meta, title: '详细' }
        },
    ])('home-')
}